<?php

namespace App\Livewire\Components;

use Livewire\Component;
use App\Models\Music as MusicModel;

class Music extends Component
{
    public $musics;

    public function mount()
    {
        $musics = MusicModel::query()->where('status', 1)->get();
        $this->musics = $musics;
    }

    public function render()
    {

        return view('livewire.components.music', [
            'musics' => $this->musics,
        ]);
    }
}
